package com.canvas.base;

import lombok.Data;

/**
 * Datatables 响应结构
 *
 * @Author: 宗恣
 * @Date: 2018/9/5 0005 13:45
 */
@Data
public class ApiDataTableResponse extends ApiResponse {

    private int draw;

    private long recordsTotal;

    private long recordsFiltered;

    public ApiDataTableResponse(ApiResponse.Status status) {
        this(status.getCode(), status.getStandardMessage(), null);
    }

    public ApiDataTableResponse(int code, String message, Object data) {
        super(code, message, data);
    }
}
